//#include <stdio.h>
//#include <unistd.h>

//sbint main()
//{
  //int count = 10;
  //while(count){
   // printf("%2d\r",count);
   // fflush(stdout);
   // count--;
   // sleep(1);
 //bin/ }
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main()
 {
 #define NUM 100
  char bar[NUM+1];
  memset(bar,'\0',sizeof(bar));
  //const char *lable='|/-\\'
  //;
  char count[2] = {'-','+'};
  
  int i = 0;
  while(i<=100){
     printf("[%-100s][%3d%%] %c\r",bar,i,count[i%2]);         
     fflush(stdout);
     bar[i]='#';
     i++;
     usleep(50000);
    }
  printf("\n");
 //                                                               20   return 0;
 //
 //                                       }'
 //                     }printf("\n");

  return 0;
}
